<template>
  <div class="weather-container">
    <el-card class="box-card">
      <!-- header部分 -->
      <template #header>
        <div class="card-header">
          <TopComponment />
        </div>
      </template>
      <BodyComponent />
      <template #footer><FooterComponent /></template>
    </el-card>
  </div>
</template>

<script setup>
import TopComponment from "../views/TopComponment.vue"
import BodyComponent from "../views/BodyComponent.vue"
import FooterComponent from "../views/FooterComponent.vue"
</script>

<style lang="scss" scoped>
.weather-container {
  background-color: rgb(0, 102, 138);
  height: 100%;
  width: 100vw;
  justify-content: center;
  align-items: center;
}
:deep(.el-card__header) {
  display: flex;
  background-color: rgb(0, 102, 138);
  width: 100vw;
  font-size: 18px;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
:deep(.el-card__footer) {
  border: none;
}

.box-card {
  width: 100%;
  height: 100%;
  background-color: rgb(0, 102, 138);

  .text {
    font-size: 14px;
  }

  .item {
    margin-bottom: 18px;
  }
}
</style>
